package club.justwill.single.Service;

import club.justwill.single.bean.*;
import club.justwill.single.model.JsonResponse;
import club.justwill.single.model.SecurityToken;
import club.justwill.single.persistence.jpo.ProjectIntroduce;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.util.List;

/**
 * Created by luoyu on 15-12-27.
 */
public interface ProjectIntroduceService {
    ProjectIntroduce addProjectIntroduce(SecurityToken token, CreateProjectIntroduce createProjectIntroduce, JsonResponse obj);

    List<ProjectIntroduce> searchProjectIntroduce(SearchProjectIntroduce searchProjectIntroduce, JsonResponse obj);

    List<ProjectIntroduce> searchProjectSupportReturn(long projectId, JsonResponse obj);

    public void saveFile(SecurityToken token, JsonResponse obj, CommonsMultipartFile cover,Long introduceId);

    public void updateProjectIntroduce(SecurityToken token, UpdateProjectIntroduce updateProjectIntroduce, JsonResponse obj);
}
